package com.xhui.vimarket.zkplus.zul.attr.evt;

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Page;
import org.zkoss.zk.ui.metainfo.ComponentInfo;

import com.xhui.vimarket.zkplus.composer.WirevalForeardComposer;
import com.xhui.vimarket.zkplus.utils.ComposerUtil;

/**
 * 属性composer基本实现.
 * 
 * @版权：福富软件 版权所有 (c) 2011
 * @author wuyx
 * @version Revision 1.0.0
 * @see:
 * @创建日期：2011-6-3
 * @功能说明：属性composer基本实现
 * 
 */
public class AttrBaseComposer extends WirevalForeardComposer {
    
    /**
     * serialVersionUID.
     */
    private static final long serialVersionUID = 1L;
    
    @Override
    public ComponentInfo doBeforeCompose(final Page page, final Component comp,
        final ComponentInfo info) {
        return info;
    }
    
    @Override
    public void doAfterCompose(final Component comp) throws Exception {
        // 保存composer 到界面
        ComposerUtil.setComposer(comp, this);
        super.doAfterCompose(comp);
    }
    
    /**
     * initVal.
     */
    public void initVal() {
    }
    
}
